﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace msgtypebuilder
{
    public partial class name : Form
    {
        public string old_name = string.Empty;
        public string new_name = string.Empty;

        public name()
        {
            InitializeComponent();
        }

        private void Ok_Click(object sender, EventArgs e)
        {
            new_name = rename_content.Text;
            this.DialogResult = DialogResult.OK;
            Close();
        }

        private void Cancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            Close();
        }

        private void OnShow(object sender, EventArgs e)
        {
            rename_content.Text = old_name;
            new_name = string.Empty;
        }
    }
}
